package com.fourforfo.fourmall.ware.exception;

/**
 * @program: xxl-sso-core
 * @description: 没有库存导致的锁库异常
 * @author: fourforfo
 * @email: fourforfo@gmail.com
 * @create: 2022-09-06 17:59
 **/
public class NoStockException extends RuntimeException {
    private Long skuId;
    public NoStockException(){
        super("没有足够的库存导致锁库异常!");
    }

    public NoStockException(Long skuId){
        super("id为["+skuId+"]的商品没有足够的库存导致锁库异常!");
    }


}
